<html>
<head><title>Login</title>
    <script src="https://cdn.bootcss.com/blueimp-md5/2.12.0/js/md5.min.js"></script>
    <script>
        function submitForm() {
            var theForm = document.forms[0];
            if (theForm.u.value != '' && theForm.p.value != '') {
                if (parent != null) {
                    theForm.target = "_parent";
                    theForm.p.value = md5(theForm.p.value);
                    theForm.submit();
                }
            }
        }
    </script>
</head>
<body>
<form action="login" method="post">
    username: <input name="u"/>
    password: <input type="password" name="p"/>
    <input type="hidden" name="action" value="login"/>
    <input type="button" value="Login" onclick="submitForm();return false;"/>
</form>
</body>
</html>
